package com.lin.linchatgpt.service;

import com.lin.linchatgpt.entity.vo.ChatMessageVo;
import com.mybatisflex.core.service.IService;
import com.lin.linchatgpt.entity.Message;

import java.io.IOException;
import java.util.List;

/**
 *  服务层。
 *
 * @author 15898
 * @since 2023-06-13
 */
public interface MessageService extends IService<Message> {

    List<ChatMessageVo> getMessages(String subjectId);
    /**
     * @description 修改聊天记录
     * @author 霖霖
     * @date 2023/6/22 19:23
     * @params  [com.lin.linchatgpt.entity.Message]
     * @return  java.util.List<com.lin.linchatgpt.entity.Message>
     */
    List<Message> modifyMessage(Message message);

    void saveMessage(Message questionMessage, Message answerMessage,int type);
}